package Homework;

/**
 * @program: Java_Study
 * @author: Xiaofan
 * @createTime: 2021-07-07 10:31
 * @description: Functions of this class is 字符串提取
 **/
import java.util.Scanner;

public class B3 {
    public static void main(String[] args) {
        Scanner in=new Scanner(System.in);
        while(in.hasNext()) {
            String s=in.nextLine();

            Scanner sc=new Scanner(s);
            double a=0;
            sc.useDelimiter("[^0-9.]+");
            while(sc.hasNextDouble())
            {
                a+=sc.nextDouble();}

            System.out.println((int)a);
        }}
}